home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 15 / macformat_15.iso / C de cerca / Codewarrior Lite / MacOS Support / Headers / ANSI Headers / locale.h < prev    next >
Text File  |  1995-12-29  |  2KB  |  88 lines

  1. /* locale.h standard header */
  2. #ifndef _LOCALE
  3. #define _LOCALE
  4. #ifndef _YVALS
  5. #include <yvals.h>
  6. #endif
  7.  
  8. #if __MWERKS__
  9. #pragma options align=mac68k
  10.  
  11. #if __CFM68K__ && __USING_IMPORTED_ANSI__
  12. #pragma import on
  13. #endif
  14. #endif
  15.  
  16.         /* macros */
  17. #ifndef NULL
  18. #define NULL    _NULL
  19. #endif
  20.         /* locale codes */
  21. #define LC_COLLATE    (1 << 0)
  22. #define LC_CTYPE    (1 << 1)
  23. #define LC_MONETARY    (1 << 2)
  24. #define LC_NUMERIC    (1 << 3)
  25. #define LC_TIME        (1 << 4)
  26. #define LC_MESSAGE    (1 << 5)
  27.     /* ADD YOURS HERE, THEN UPDATE _NCAT */
  28. #define _NCAT        6    /* one more than last */
  29. #define LC_ALL        ((1 << _NCAT) - 1)
  30.         /* type definitions */
  31. struct lconv {
  32.         /* controlled by LC_MONETARY */
  33.     char *currency_symbol;
  34.     char *int_curr_symbol;
  35.     char *mon_decimal_point;
  36.     char *mon_grouping;
  37.     char *mon_thousands_sep;
  38.     char *negative_sign;
  39.     char *positive_sign;
  40.     char frac_digits;
  41.     char int_frac_digits;
  42.     char n_cs_precedes;
  43.     char n_sep_by_space;
  44.     char n_sign_posn;
  45.     char p_cs_precedes;
  46.     char p_sep_by_space;
  47.     char p_sign_posn;
  48.         /* controlled by LC_NUMERIC */
  49.     char *decimal_point;
  50.     char *grouping;
  51.     char *thousands_sep;
  52.     char *_Frac_grouping;
  53.     char *_Frac_sep;
  54.         /* controlled by LC_MESSAGE */
  55.     char *_No;
  56.     char *_Yes;
  57.     };
  58.         /* declarations */
  59. _C_LIB_DECL
  60. struct lconv *localeconv(void);
  61. char *setlocale(int, const char *);
  62. extern struct lconv _Locale;
  63. _END_C_LIB_DECL
  64. #ifndef __cplusplus
  65.         /* macro overrides */
  66. #define localeconv()    (&_Locale)
  67. #endif /* __cplusplus */
  68.  
  69. #if __MWERKS__
  70. #if __CFM68K__ && __USING_IMPORTED_ANSI__
  71. #pragma import reset
  72. #endif
  73.  
  74. #pragma options align=reset
  75. #endif
  76.  
  77. #endif /* _LOCALE */
  78.  
  79. /*
  80.  * Copyright (c) 1994 by P.J. Plauger.  ALL RIGHTS RESERVED. 
  81.  * Consult your license regarding permissions and restrictions.
  82.  */
  83.  
  84. /* Change log:
  85.  *94June04 PlumHall baseline
  86.  *94Oct07 Inserted MW changes.
  87.  */
  88.